<!DOCTYPE HTML>
<html>
<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@page import="com.beidouapp.security.model.SessionUser"%> 
<%@page import="com.beidouapp.security.utils.DscpCommUtils" %>    
<head>
<meta charset="UTF-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link href="<%=request.getContextPath()%>/css/common/H-ui.min.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/css/common/H-ui.admin.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/css/iconfont/iconfont.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/css/font-awesome/font-awesome.min.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/css/common/jquery-ui.min.css" rel="stylesheet" type="text/css" />
<link href="<%=request.getContextPath()%>/css/common/autocomplete.css" rel="stylesheet" type="text/css" />
<link href="<%=request.getContextPath()%>/css/common/style.css" rel="stylesheet" type="text/css"/>
<title>组织机构</title>
</head>
<body>
	<div class="pd-40 mt-40">
	<form id='form-add' style="display:none">
		<div class='orgBaseInfo'>基础资料</div>
		<table class="orgBaseInfoTable table table-bordered table-border table-hover table-striped">
			<tbody class="text-l">
				<tr><td>机构名称</td><td><input type='text' class='input-text' placeholder='' id='name' datatype='*1-256' nullmsg='不能为空'></td><td>机构代码</td><td><input type='text' placeholder='' id='code' class='input-text' datatype="*1-128" nullmsg='不能为空'></td></tr><tr><td>区县行政区划代码</td><td><div id="test"></div></td><td>简称</td><td><input type='text' placeholder='' id='shortname' class='input-text' datatype="*1-128" nullmsg='不能为空'></td></tr>
				<tr><td>经营许可证编号</td><td><input type='text' class='input-text' placeholder='' id='licnum'></td><td>经营许可日期</td><td><input class="Wdate input-text" type='text' placeholder='' id='licetime' onfocus="WdatePicker({skin:'whyGreen',dateFmt: 'yyyy-MM-dd'})"></td></tr>
				<tr><td>营业执照注册号</td><td><input type='text' class='input-text' placeholder='' id='business'></td><td>统一社会信用代码</td><td><input type='text' placeholder='' id='creditcode' class='input-text'></td></tr>
				<tr><td>法人代表</td><td colspan=3><input type='text' class='input-text' placeholder='' id='legal'></td></tr>
				<tr><td>联系人</td><td><input type='text' class='input-text' placeholder='' id='contact'></td><td>联系电话</td><td><input type='text' class='input-text' placeholder='' id='phone' datatype="m"></td></tr>
				<tr><td>机构地址</td><td><input type='text' class='input-text' placeholder='' id='address'></td><td>邮政编码</td><td><input type='text' class='input-text' placeholder='' id='postcode' datatype="p"></td></tr>
			</tbody>
		</table>
		<div class="col-4 col-offset-5 mt-20">
			<span class="l"> 
				<button type='submit' class="btn btn-primary radius">提交信息</button>
			</span>
		</div></form>
		<div id='orgInfo'></div>
	</div>
	
<script type="text/javascript" src="<%=request.getContextPath()%>/lib/common/jquery.min.js"></script> 
<script type="text/javascript" src="<%=request.getContextPath()%>/lib/common/jquery-ui.min-1.10.2.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/lib/layer1.8/layer.min.js"></script> 
<script type="text/javascript" src="<%=request.getContextPath()%>/lib/common/Validform_v5.3.2.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/lib/common/Date.js"></script> 
<script type="text/javascript" src="<%=request.getContextPath()%>/lib/common/H-ui.js"></script> 
<script type="text/javascript" src="<%=request.getContextPath()%>/lib/common/H-ui.admin.js"></script> 
<script type="text/javascript" src="<%=request.getContextPath()%>/lib/common/city.js?1.6"></script> 
<script type="text/javascript" src="<%=request.getContextPath()%>/js/organization/OrganizationInfo.js?1.8"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/lib/My97DatePicker/WdatePicker.js"></script> 
	<script>
		$(function(){
			$('.back_ListAll').find('span:lt(2)').on('click',function(){
				location.href=baseURL + '/api/organization/page/list';
			})
			var isAdmin=<%=DscpCommUtils.isSupperAdmin(request.getSession())%>;
			if(!isAdmin){
				$('.back_ListAll').hide();
			}else $('.back_ListAll').show();
		})
		var baseURL="<%=request.getContextPath()%>";
		var isManagerPlat="<%=DscpCommUtils.isManagerPlat(request.getSession())%>";
		var orgId="<%=request.getAttribute("orgId")==null?(request.getSession().getAttribute("airport-user")==null?"":((SessionUser)request.getSession().getAttribute("airport-user")).getOrgId()):request.getAttribute("orgId")%>";
	</script>
</body>
</html>